<h1>管理员列表</h1>

<table class="table table-bordered">
  <tr>
    <th>用户名称</th>
    <th>登录密码</th>
    <th>电子邮箱</th>
    <th>手机号码</th>
    <th>状态</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @adminers.each do |adminer| %>
  <tr>
    <td><%= adminer.name %></td>
    <td><%= adminer.pass %></td>
    <td><%= adminer.email %></td>
    <td><%= adminer.mobile %></td>
    <td><%= adminer.running %></td>
    <td><%= link_to 'Show', adminer %></td>
    <td><%= link_to 'Edit', edit_adminer_path(adminer) %></td>
    <td><%= link_to 'Destroy', adminer, method: :delete, data: { confirm: 'Are you sure?' } %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to '新增管理员', new_adminer_path %>
